package com.example.learnspring.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class EmpParam {
    private String name;
    private String deptName;
    private Integer gender;
    private Integer pageNum = 1;
    private Integer pageSize = 10;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startTime;
}
